import api from "../utils/http"
export default {
  //查询所有点餐/selectOrderingFood-----------已更改，cj
  selectOrderingFood () {
    return api({
      url: 'selectAllOrderingFood',
      method: 'get',
    })
  },
  //查询指定餐桌点餐/selectOrderingFoodById
  selectOrderingFoodById (data) {
    return api({
      url: 'selectOrderingFoodById',
      method: 'get',
      params: {
        food_table_number: data
      }
    })
  },
  //收银处理/deleteOrderingFoodById
  deleteOrderingFoodById () {
    return api({
      url: 'deleteOrderingFoodById',
      method: 'post',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      body: {
        food_table_id: '',
        foods: [],
        food_id: '',
      },
      withCredentials: true
    })
  },
}